home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmDataEnvironment
- BorderStyle = 1 'Fixed Single
- Caption = "Data Environment Example"
- ClientHeight = 2865
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 4860
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2865
- ScaleWidth = 4860
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton cmdNext
- Caption = "&Next"
- Height = 495
- Left = 2640
- TabIndex = 9
- Top = 2160
- Width = 1215
- End
- Begin VB.CommandButton cmdPrevious
- Caption = "&Previous"
- Height = 495
- Left = 1080
- TabIndex = 8
- Top = 2160
- Width = 1215
- End
- Begin VB.TextBox txtContactTitle
- DataField = "ContactTitle"
- DataMember = "comCustomers"
- DataSource = "denNorthwind"
- Height = 285
- Left = 1260
- TabIndex = 7
- Top = 1680
- Width = 3375
- End
- Begin VB.TextBox txtContactName
- DataField = "ContactName"
- DataMember = "comCustomers"
- DataSource = "denNorthwind"
- Height = 285
- Left = 1290
- TabIndex = 5
- Top = 1200
- Width = 3375
- End
- Begin VB.TextBox txtCompanyName
- DataField = "CompanyName"
- DataMember = "comCustomers"
- DataSource = "denNorthwind"
- Height = 285
- Left = 1320
- TabIndex = 3
- Top = 720
- Width = 3375
- End
- Begin VB.TextBox txtCustomerID
- DataField = "CustomerID"
- DataMember = "comCustomers"
- DataSource = "denNorthwind"
- Height = 285
- Left = 1320
- TabIndex = 1
- Top = 300
- Width = 825
- End
- Begin VB.Label lblFieldLabel
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "ContactTitle:"
- Height = 255
- Index = 3
- Left = -585
- TabIndex = 6
- Top = 1710
- Width = 1815
- End
- Begin VB.Label lblFieldLabel
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "ContactName:"
- Height = 255
- Index = 2
- Left = -555
- TabIndex = 4
- Top = 1200
- Width = 1815
- End
- Begin VB.Label lblFieldLabel
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "CompanyName:"
- Height = 255
- Index = 1
- Left = -600
- TabIndex = 2
- Top = 765
- Width = 1815
- End
- Begin VB.Label lblFieldLabel
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "CustomerID:"
- Height = 255
- Index = 0
- Left = -600
- TabIndex = 0
- Top = 345
- Width = 1815
- End
- Attribute VB_Name = "frmDataEnvironment"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdNext_Click()
- denNorthwind.rscomCustomers.MoveNext
- If denNorthwind.rscomCustomers.EOF Then
- denNorthwind.rscomCustomers.MoveLast
- End If
- End Sub
- Private Sub cmdPrevious_Click()
- denNorthwind.rscomCustomers.MovePrevious
- If denNorthwind.rscomCustomers.BOF Then
- denNorthwind.rscomCustomers.MoveFirst
- End If
- End Sub
-